package com.allwees.bs.core.model.order.wf.order;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.allwees.core.wf.Action;

public enum EOrderAction implements Action, IEnum<String> {

    //USER ACTION

    USER_CREATE,

    USER_PAYED,
    /**
     * 货到付款
     */
    USER_COD,

    USER_CANCEL,



    USER_CONFIRM_RECEIVED,

    USER_ALL_RECEIVED,

    USER_ALL_CANCELED,

    USER_ALL_REVIEWED,
    //end of USER ACTION

    // merchant action

    MERCHANT_SHIPPED,
    MERCHANT_ALL_SHIPPED,

    LOGISTICS_DELIVERED,
    // end of merchant action

    /**
     * 自动取消过期未支付的订单
     */
    SYSTEM_CANCEL_BY_UNPAID,

    /**
     * 自动关闭5天未发货的订单
     * 待发货订单，从订单变成【待发货】状态的日期开始算，5天以后还未填写发货记录，则系统自动退款给买家，订单取消，状态变成【交易关闭】。
     */
    SYSTEM_CLOSE_BY_SHIPPING_OVER_TIME,

    /**
     * 用户全部退货
     */
    SYSTEM_CLOSE_BY_ALL_REFUND
    ;

    @Override
    public String getValue() {
        return name();
    }
}
